package cn.tedu.egmybatis4.pojo.entity;
/*
 id      INT PRIMARY KEY AUTO_INCREMENT COMMENT '商品编号',
    title   VARCHAR(20) COMMENT '商品标题',
    price   DOUBLE(10, 2) COMMENT '商品价格',
    stock   INT COMMENT '商品库存'
 */
public class Product {
    private int id;
    private String title;
    private  double price;
    private  int stock;

    @Override
    public String toString() {
        return "Product{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", price=" + price +
                ", stock=" + stock +
                '}';
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public int getStock() {
        return stock;
    }

    public void setStock(int stock) {
        this.stock = stock;
    }
}
